<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .one{
            width: 100px;
            height: 100px;
            border: 1px solid black;
            margin-left: 20px;
        }
    </style>
</head>
<body>
    <div id="one" class="one"></div>
    <script>
        const one = document.getElementById("one")
        console.log("offsetWidth",one.offsetWidth)
        console.log("clientWidth",one.clientWidth)
        console.log("offsetLeft",one.offsetLeft)
    </script>
</body>
</html>